#include "Explosion.h"

Explosion::Explosion() : counter(0)
{

}

void Explosion::Play(int x, int y)
{
    explosionSprite.SetPosition(x, y);
    animator.Apply(explosionSprite);
}

void draw(sf::RenderWindow* window)
{
    animator.Apply(explosionSprite);
    window->Draw(explosionSprite);
    if(counter++ > 16*16)
        play = false;
}
